#!/bin/bash
baseDirForScriptSelf=$(cd "$(dirname "$0")"; pwd)
# 初始化环境变量
source ${baseDirForScriptSelf}/source.sh
# 用户注意事项
echo """========================================
请注意:
1. 脚本无法直接使用
2. 默认修改pip和apt-get安装源,如不需要请注释对应行
3. 默认安装众多依赖包,如有冲突请百度解决
4. 使用干净系统验证,无法做到万无一失,如遇失败,请尽量百度搜索解决,如果发现问题,欢迎提交PR/issue
!!!请一定注意!!! 下载源码默认执行 git reset --hard 和 git clean -fd,这会导致本地修改全部丢失
!!!请一定注意!!! 下载源码默认执行 git reset --hard 和 git clean -fd,这会导致本地修改全部丢失
!!!请一定注意!!! 下载源码默认执行 git reset --hard 和 git clean -fd,这会导致本地修改全部丢失
如果不需要执行,请注释download_code.sh对应行
-----------------------------------------------
Please note:
1. Scripts cannot be used directly.
2. Modify the pip and apt-get installation sources by default. If the installation sources are not required, comment out the corresponding lines.
3. Many dependency packages are installed by default. If there are conflicts, contact Baidu.
4. Use a clean system for verification, which cannot be foolproof. If the verification fails, try to search for and solve the problem. If any problem is found, submit a PR.
Please pay attention! To download the source code, run 'git reset --hard' and 'git clean -fd' by default. As a result, all local modifications will be lost.
Please pay attention! To download the source code, run 'git reset --hard' and 'git clean -fd' by default. As a result, all local modifications will be lost.
Please pay attention! To download the source code, run 'git reset --hard' and 'git clean -fd' by default. As a result, all local modifications will be lost.
If you do not need to perform this operation, comment out the line corresponding to download_code.sh.
"""
for ((i=5;i>0;i--));
do
    echo -n "$i "
    sleep 1
done
echo ' '
echo '''确认以上信息后,请按回车(Enter)后继续...
After confirming the above information, press Enter to continue...'''
read